<table class="report">
<?php
if (isset($PreparedTemplates['report_form']['empty'])) {
	echo $PreparedTemplates['report_form']['empty'];
}
else {
?>
<tr><td>
	Date
	</td>
	<td>
	Username
	</td>
	<td>
	Groupname
	</td>
	<td>
	Acct_Flags 
	</td>
	<td>
	Elapsed_Time
	</td>
	<td>
	Service
	</td>
	<td>
	Bytes_In
	</td>
	<td>
	Bytes_Out
	</td>
	<td>
	Paks_In
	</td>
	<td>
	Paks_Out
	</td>
	<td>
	Task_Id
	</td>
	<td>
	Addr
	</td>
	<td>
	NAS_Portname
	</td>
	<td>
	NAS_IP_Address
	</td>
	</tr>
<?php 
foreach ($PreparedTemplates['report_form'] as $report_row)
{
?>

  <tr>
  	<td>
	<?php echo $report_row['date']?>
	</td>
	<td>
	<?php echo $report_row['username']?>
	</td>
	<td>
	<?php echo $report_row['groupname']?>
	</td>
	<td>
	<?php echo $report_row['acct_flags']?>
	</td>
	<td>
	<?php echo $report_row['elapsed_time']?>
	</td>
	<td>
	<?php echo $report_row['service']?>
	</td>
	<td>
	<?php echo $report_row['bytes_in']?>
	</td>
	<td>
	<?php echo $report_row['bytes_out']?>
	</td>
	<td>
	<?php echo $report_row['paks_in']?>
	</td>
	<td>
	<?php echo $report_row['paks_out']?>
	</td>
	<td>
	<?php echo $report_row['task_id']?>
	</td>
	<td>
	<?php echo $report_row['addr']?>
	</td>
	<td>
	<?php echo $report_row['nas_portname']?>
	</td>
	<td>
	<?php echo $report_row['nas_ip_address']?>
	</td>
</tr>
<?php 
}}
?>
</table>
